home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 273_01.zip / GETCHARS.CC < prev    next >
Text File  |  1993-04-04  |  513b  |  19 lines

  1. int get_chars(int row, int col, int leng, char *string)
  2. /* This will read leng characters from the screen at the location specified
  3.    by row,col and will place the characters (not the attr bytes) into the
  4.    string pointed to by *string.
  5. */
  6. {
  7.     extern color, mono, cga, ega, scrseg, bios;
  8.     int    i, orow, ocol;
  9.     if (col + leng > 80) return(1);
  10.  
  11.     if(bios) get_cur(&orow,&ocol);
  12.     for(i=1;i<=leng;i++) {
  13.         sread_c(row,col,string);
  14.         string++; col++;
  15.     }
  16.     if(bios) locate(orow,ocol);
  17.     return(0);
  18. }
  19.